// DlgTotalSearch.cpp : implementation file
//

#include "stdafx.h"
#include "case1.h"
#include "DlgTotalSearch.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgTotalSearch dialog

CDlgTotalSearch::CDlgTotalSearch(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgTotalSearch::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgTotalSearch)
	m_str_search_all_value = _T("");
	m_str_select_item = _T("");
	m_str_select_table = _T("");
	//}}AFX_DATA_INIT
}


void CDlgTotalSearch::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgTotalSearch)
	DDX_Control(pDX, IDC_COMBO_SELECT_TABLE, m_combo_select_table);
	DDX_Control(pDX, IDC_COMBO_SELECT_ITEM, m_combo_select_item);
	DDX_Text(pDX, IDC_EDIT_SEARCH_ALL_VALUE, m_str_search_all_value);
	DDX_CBString(pDX, IDC_COMBO_SELECT_ITEM, m_str_select_item);
	DDX_CBString(pDX, IDC_COMBO_SELECT_TABLE, m_str_select_table);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgTotalSearch, CDialog)
	//{{AFX_MSG_MAP(CDlgTotalSearch)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgTotalSearch message handlers

BOOL CDlgTotalSearch::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here

	m_combo_select_table.AddString("basicInfo");
	m_combo_select_table.AddString("work_resume");
	m_combo_select_table.AddString("salary");
	m_combo_select_table.AddString("all_table");

	m_combo_select_item.AddString("id");
	m_combo_select_item.AddString("name");


	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CDlgTotalSearch::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData();
	CDialog::OnOK();
}
